<?php
use Lonicera as Lonicera;
//单一入口文件
//定义全局变量 绝对路径
define('_ROOT',dirname(__FILE__).DIRECTORY_SEPARATOR);
define('_SYS_PATH', _ROOT.'Lonicera'.DIRECTORY_SEPARATOR);
define('_APP', _ROOT.'app'.DIRECTORY_SEPARATOR);
//define('_config', _SYS_PATH.'app'.DIRECTORY_SEPARATOR);
//echo _SYS_PATH.'config.php';
$_config = require _SYS_PATH.'config.php'; // 加载配置文件
require _SYS_PATH.'Lonicera.php'; //引入框架核心
//$app = new Lonicera($config);
$app = new Lonicera\Lonicera();
$app->run();
?>